package com.itjeffrey.autocode.bo.req;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @From: Jeffrey
 * @Date: 2020/12/8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ModPwdBO implements Serializable {
    private static final long serialVersionUID = 4088786724204149684L;

    @NotNull
    private String userName;

    @NotNull
    private String oldPwd;

    @NotNull
    @Length(min = 0, max = 225, message = "新密码长度过大")
    private String newPwd;

    @NotNull
    private String ackNewPwd;
}
